
<?php foreach($group_discussion as $gds) {
    $bgcolor = ($gds['user_id'] == _session('user_id')) ? '#CFDBEC' : '#C0F7DF';
?>
<div class ="line" style ="background-color: <?php echo $bgcolor ?>; margin-left: 5px; margin-top: 5px;">
    <label class="bold" style ="text-align: left; width: auto; margin-top: 2px; margin-bottom: 0px; padding-bottom: 0px;" ><?php echo $gds['fname'].' '.$gds['mname'].' '.$gds['lname'] ?> (<?php echo $gds['date_posted'] ?>):</label>
    <div class ="field clear" style ="width: auto; margin-bottom: 0px; padding-top: 0px; padding-left: 11px;"><?php echo $gds['message'] ?></div>
</div>

<?php } ?>

